﻿using System.Diagnostics;

namespace DimensionsHelper.LanguageService.Syntax;

public class MetadataMultiplier : MetadataFieldReferenceSuffix
{
    internal MetadataMultiplier(SyntaxToken multiplierKeywordToken, SyntaxNode? parent) :
        base(SyntaxKinds.MetadataMultiplier,
            multiplierKeywordToken,
            NodeConverter.ToIdentifier(multiplierKeywordToken),
            parent)
    {
    }
}


public static partial class NodeFactory
{
    public static MetadataMultiplier CreateMetadataMultiplier(SyntaxNode? parent,
        SyntaxToken multiplierKeywordToken)
    {
        Debug.Assert(multiplierKeywordToken.IsNode(SyntaxKinds.MultiplierKeywordToken));
        MetadataMultiplier multiplier = new(multiplierKeywordToken, parent);
        return multiplier;
    }
}